import { Column, DeleteDateColumn, Entity, Index } from 'typeorm';
import { IBaseEntity } from '../../00_base/IBaseEntity';

@Index('PK__sys_dict__3213E83FEEC6134B', ['id'], { unique: true })
@Entity('sys_dict', { schema: 'dbo' })
export class SysDict extends IBaseEntity {
  @Column('nvarchar', { name: 'type_code', nullable: true, length: 64 })
  typeCode: string | null;

  @Column('nvarchar', { name: 'name', nullable: true, length: 50 })
  name: string | null;

  @Column('nvarchar', { name: 'value', nullable: true, length: 50 })
  value: string | null;

  @Column('int', { name: 'sort', nullable: true })
  sort: number | null;

  @Column('tinyint', { name: 'status', nullable: true })
  status: number | null;

  @Column('tinyint', { name: 'defaulted', nullable: true })
  defaulted: number | null;

  @Column('nvarchar', { name: 'remark', nullable: true, length: 255 })
  remark: string | null;
  @Column('datetime2', { name: 'effectiveEndTime', nullable: true })
  effectiveEndTime: Date | null;

  @Column('datetime2', { name: 'effectiveStartTime', nullable: true })
  effectiveStartTime: Date | null;
}
